package editors.gui;
import tools.Point;
public abstract class GuiObject {
	protected Rect rect;
	protected boolean clicked;
	public GuiObject() {
		clicked = false;
		rect = new Rect();
	}
	public abstract boolean isClicked();
	public abstract boolean checkClick(Point mp);
	public void setClick(Point mp) {
	}
	public abstract void draw();
	public void setClicked(boolean b) {
		clicked = b;
	}
	public void move(Point dx) {
		rect.move(dx);
	}
}
